package org.xcorpio.java8.chapter01;

import java.io.File;
import java.io.FileFilter;
import java.nio.file.Files;

public class HelloFunction {
    public static void main(String[] args) {
        /*File[] hiddenFiles = new File(".").listFiles(new FileFilter() {
            @Override
            public boolean accept(File file) {
                return file.isHidden();
            }
        });*/
        File[] hiddenFiles = new File(".").listFiles(File::isHidden);
        for (File file: hiddenFiles) {
            System.out.println(file);
        }
    }
}
